package mylib.dir;

/**
 * Created with IntelliJ IDEA.
 * User: 1
 * Date: 17.07.12
 * Time: 23:28
 * To change this template use File | Settings | File Templates.
 */
public class InputUtils {
    public static void inputArray(FastInputReader in, int[]... arrays) {
        for (int i = 0; i < arrays[0].length; ++i) {
            for (int j = 0; j < arrays.length; ++j) {
                arrays[j][i] = in.nextInt();
            }
        }
    }

    public static void inputArray(FastInputReader in, double[]... arrays) {
        for (int i = 0; i < arrays[0].length; ++i) {
            for (int j = 0; j < arrays.length; ++j) {
                arrays[j][i] = in.nextDouble();
            }
        }
    }

    public static void inputArray(FastInputReader in, long[]... arrays) {
        for (int i = 0; i < arrays[0].length; ++i) {
            for (int j = 0; j < arrays.length; ++j) {
                arrays[j][i] = in.nextLong();
            }
        }
    }

}
